<?php

App::uses('AppController', 'Controller');
include_once('ControlController.php');
include_once(SIMPLEPIE);

class InicioController extends ControlController {

	public $name = 'Inicio';
	var $rss_reader;

	function beforeFilter(){
		parent::beforeFilter();
		$this->rss_reader = new SimplePie();
		//$this->check_login();
	}
	
	public function index() {
 		$this->comprobar_permisos('inicio','index');
 		$this->layout = 'ajax';
 		$this->rss_reader->set_feed_url('http://www.rssmicro.com/?q=Madrid');
 		$this->rss_reader->init();
 		$this->rss_reader->handle_content_type();
 		
 		//http://www.rssmicro.com/?q=Madrid
		//$this->check_login('portada','index');
		//$usuariosDao = new usuariosDao();
		//$info = $usuariosDao->listar_bases_datos();
			//$this->redirect('/control/login_form');
		//$this->set('info',$info);
	}
	
	
}

?>